package com.ant.myagile

import grails.test.mixin.TestFor



/**
 * See the API for {@link grails.test.mixin.support.GrailsUnitTestMixin} for usage instructions
 */
@TestFor(CommonService)
class CommonServiceTests {
	CommonService  c
    void setUp() {
        c= new CommonService()
    }

    void tearDown() {
        // Tear down logic here
    }

    void testConvertPoint() {
		assertEquals(c.ConvertPoint("D5T3"), 8);
		assertEquals(c.ConvertPoint("D0T0"), 0);
		assertEquals(c.ConvertPoint("D10T1"), 11);
		assertEquals(c.ConvertPoint("D1T10"), 11);
		assertEquals(c.ConvertPoint("D10T10"), 20);
		assertEquals(c.ConvertPoint("D100T100"), 200);
    }
}
